package com.cfc.mongodb.entity;

import lombok.Data;

/**
 * @author zqs
 */
@Data
public class PageParam {

    //@ApiModelProperty(value = "查询-页码",required = true)
    private Integer current;

    //@ApiModelProperty(value = "查询-分页条数",required = true)
    private Integer limit;

    public PageParam(){
    }

    public PageParam(Integer current, Integer limit){
        this.current = current;
        this.limit = limit;
    }

    //@ApiModelProperty(value = "分页对象",hidden = true)
    public PageParam getPageParam(){
        return new PageParam(this.current,this.limit);
    }
}